package net.dopan.pigframe.user.mapper;

import net.dopan.pigframe.core.base.dao.BaseDao;
import net.dopan.pigframe.user.model.entity.User;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

/**
 * @author wufeihong
 * 用户表mapper
 */
public interface UserMapper extends BaseDao<User> {

    @Select("select * from user where phone = #{phone}")
    @ResultMap("BaseResultMap")
    User findByPhone(String phone);
}
